home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
prog
/
proxy14.arj
/
PRIMES.PRX
< prev
next >
Wrap
Text File
|
1991-10-06
|
129b
|
7 lines
// primes: integer -> seq(integer)
primes(max) {return [n:n<-[2..max];
!(exists m in {2..n-1};(n % m)==0)];};
end